export default {
    data:
    {
        bottom: ["首页", "朋友", "", "消息", "我"],
        top: ["深圳", "关注", "推荐"],
        sideImg_url: ["user.png", "like.png", "comment.png", "star.png", "share.png"],
        sideImg_path: "/common/images/",
        video_path: "/common/video/",
        side_data: ["", "2021", "2023", "104", "1900"],
        video: ["video1.mp4", "video2.mp4", "video3.mp4"],
        playerIndex: 0
    },
    onInit()
    {
        let that = this;
        for (let i = 0; i < that.video.length; i++)
        {
            that.video[i] = that.video_path + that.video[i];
        }

        for (let i = 0; i < that.sideImg_url.length; i++)
        {
            that.sideImg_url[i] = that.sideImg_path + that.sideImg_url[i];
        }
    },

    change_video(obj)
    {
        this.$element(`playerId${this.playerIndex}`).pause()
        this.playerIndex = obj.index;
        this.$element(`playerId${this.playerIndex}`).start()
    }
}
